package com.liuhengjia.langchain4japply.tools;

import dev.langchain4j.agent.tool.Tool;

/**
 * 高级计算器工具
 */
public class CalculatorPlus {
    @Tool("计算两数之和")
    public int sum(int a, int b) {
        return a + b;
    }

    @Tool("计算两数之差")
    public int sub(int a, int b) {
        return a - b;
    }
}
